<template>
	<view>
		<video autoplay :src="'http://exam.tutestudio.net/sys/DownloadFile?id=' + id"></video>
	</view>
</template>

<script>
	export default {
		name:"ppt",
		data() {
			return {
				token: '',
				id:'',
				title: ''
			};
		},
		methods:{
			
		},
		onLoad: function (option) { //option为object类型，会序列化上个页面传递的参数
				// style.hardwareAccelerated = true;
				this.id = option.id
				this.title = option.tit;
				this.token = uni.getStorageSync('token')
				if (!this.token) {
					uni.navigateTo({
						url: '../loginpage/loginpage'
					})
					return;
				}
		}
		
	}
</script>

<style lang="scss" scoped>
	view{
		background-color: #333333;
		height: 100%;
		padding: 5px;
		video{
			margin-top: 50%;
			width: 100%;
		}
	}
	uni-page-body, uni-page-refresh{ height: 100%; }
</style>